#
import argparse
from typing import Dict
# from study.aic.mimo_rx import MimoRx
from study.aic.mimo_tx import MimoTx
from study.aic.mimo_engine import MimoEngine

def main(params:Dict = {}) -> None:
    if params['run_mode'] == 1:
        MimoTx.startup(params=params)
    elif params['run_mode'] == 2:
        MimoTx.startup(params=params)
    elif params['run_mode'] == 3:
        MimoEngine.startup(params=params)
    else:
        print(f'未知运行模式')

def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser()
    parser.add_argument(
        '--run_mode', action='store',
        type=int, default=1, dest='run_mode',
        help='run mode'
    )
    return parser.parse_args()

if '__main__' == __name__:
    args = parse_args()
    params = vars(args)
    main(params=params)